package cn.neusoft.luofa603.yuejian_29.model;

import java.util.List;
import cn.neusoft.luofa603.yuejian_29.bean.Training;
import cn.neusoft.luofa603.yuejian_29.service.TrainingService;
import retrofit2.Call;

public class TrainModel extends BaseModel {
    TrainingService trainingService = gsonRetrofit.create(TrainingService.class);
        public Call<List<Training>> getOne(String mod, String page, String degree){
        return trainingService.getOne(mod,page,degree);
    }
        public Call<List<Training>>getAll(){
            return trainingService.getAll();
        }

        public Call<List<Training>>train_search(String mod,String SessionID,String degree,String search_key){
            return trainingService.train_search(mod,SessionID,degree,search_key);
        }

    public Call<List<Training>>train_key_search(String mod,String SessionID,String search_key){
        return trainingService.train_key_search(mod,SessionID,search_key);
    }
 }

